//
//  Member.h
//  LOU
//
//  Created by iMacOne on 15/11/9.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Member : NSObject

@property (nonatomic, assign)int _id;// 主键
@property (nonatomic, strong) NSString *name;// 会员名
@property (nonatomic, strong) NSString *gender;// 性别
@property (nonatomic, strong) NSString *mobilePhone;// 手机
@property (nonatomic, strong) NSString *avatar;// 头像文件名
@property (nonatomic, strong) NSString *realname;// 真实姓名
@property (nonatomic, strong) NSString *nickname;// 昵称
@property (nonatomic, strong) NSString *appKey;// 用户的私钥

#pragma mark 把dic转成用户对象
+ (id)memberWithDict:(NSDictionary*)dic;

#pragma 保存当前登录用户对象到数据库
+ (void)saveLoginerLocal;

#pragma 初始化登陆者
+ (void)setLoginer:(id)json;

// 设置cookie
+ (void)setCookie;

@end
